package com.wanmait.heatingrepair.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import lombok.Data;

/**
* Created by Mybatis Generator 2021/05/10
*/
@Data
@TableName(value = "materials_use")
public class MaterialsUse implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 关联订单
     */
    @TableField(value = "ordersinfo_id")
    private Integer ordersinfoId;
    @TableField(exist = false)
    private  Ordersinfo ordersinfo;

    /**
     * 耗材名称表ID
     */
    @TableField(value = "materials_name_id")
    private Integer materialsNameId;
    @TableField(exist = false)
    private  MaterialsName materialsName;
    /**
     * 价格（耗材）
     */
    @TableField(value = "price")
    private Integer price;

    /**
     * 录入时间
     */
    @TableField(value = "input_time")
    private Timestamp inputTime;

    /**
     * 数量
     */
    @TableField(value = "count")
    private Integer count;

    @TableLogic
    @TableField(value = "enable")
    private Boolean enable;

    private static final long serialVersionUID = 1L;

    public static final String COL_ORDERS_ID = "ordersinfo_id";

    public static final String COL_MATERIALS_NAME_ID = "materials_name_id";

    public static final String COL_PRICE = "price";

    public static final String COL_INPUT_TIME = "input_time";

    public static final String COL_COUNT = "count";

    public static final String COL_ENABLE = "enable";
}